/**
 * Copyright (c) 2005-2012 https://github.com/zhangkaitao
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.tyf.common.domain.search.filter;

import com.google.common.collect.Lists;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * Description: 关联明细表的 条件 
 * author:      liutao
 * Createdate:  2016年4月27日上午10:06:07
 * 
 */
public class DtlCondition implements SearchFilter, Serializable {
    private static final long serialVersionUID = 6034672716910811340L;
    
	private List<SearchFilter> dtlFilters = Lists.newArrayList();

    public DtlCondition() {
    }

    public DtlCondition add(SearchFilter filter) {
        this.dtlFilters.add(filter);
        return this;
    }

    public List<SearchFilter> getDtlFilters() {
        return dtlFilters;
    }

    @Override
    public String toString() {
        return "DtlCondition{" + dtlFilters + '}';
    } 
}
